package com.qf.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/*
    信用卡表
 */
public class Credit_Card {

    /*
        信用卡ID
     */
    private String id;
    /*
        额度
    */
    private double limit;
    /*
         所属用户ID
    */
    private int uid;
    /*
        还款日期
    */
    @JsonFormat(pattern = "yyyy-mm-dd")
    private Date repaymentTime;
    /*
        利息
    */
    private String interest;
    /*
         余额
    */
    private double amount;
    /*
        还款金额
     */
    private double Repayment;

    public Credit_Card() {
    }

    public Credit_Card(String id, double limit, int uid, Date repaymentTime, String interest, double amount, double repayment) {
        this.id = id;
        this.limit = limit;
        this.uid = uid;
        this.repaymentTime = repaymentTime;
        this.interest = interest;
        this.amount = amount;
        Repayment = repayment;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getLimit() {
        return limit;
    }

    public void setLimit(double limit) {
        this.limit = limit;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public Date getRepaymentTime() {
        return repaymentTime;
    }

    public void setRepaymentTime(Date repaymentTime) {
        this.repaymentTime = repaymentTime;
    }

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public double getRepayment() {
        return Repayment;
    }

    public void setRepayment(double repayment) {
        Repayment = repayment;
    }

    @Override
    public String toString() {
        return "Credit_Card{" +
                "id='" + id + '\'' +
                ", limit=" + limit +
                ", uid=" + uid +
                ", repaymentTime=" + repaymentTime +
                ", interest='" + interest + '\'' +
                ", amount=" + amount +
                ", Repayment=" + Repayment +
                '}';
    }
}
